package com.ybkj.daijia.server.gasstation;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 油价
 *
 * @author Administrator
 */
public class PaymentsRecord implements Serializable {

    public static final String OPERATING_SYS = "系统";// 系统
    public static final int DIFFERENT_POSITIVE = 0;//充值记录
    public static final int DIFFERENT_NEGATIVE = 1;//扣费记录
    private static final long serialVersionUID = 1L;
    private Long id;

    private Long gsId;

    private String gsName;//油站名

    private String gsServiceNo;//服务号

    private Long orderId;

    private String orderNum;

    private BigDecimal money;

    private BigDecimal realMoney;

    private BigDecimal afterMoney;

    private RecordType recordType;

    private Integer rcType;//充值记录 or 扣费记录

    private String operating;// 操作人

    private String memo;// 备注

    private Date created;

    private Date updated;

    public Long getId() {
        return id;
    }


    public void setId(Long id) {
        this.id = id;
    }


    public Long getGsId() {
        return gsId;
    }


    public void setGsId(Long gsId) {
        this.gsId = gsId;
    }


    public String getGsName() {
        return gsName;
    }


    public void setGsName(String gsName) {
        this.gsName = gsName;
    }


    public String getGsServiceNo() {
        return gsServiceNo;
    }


    public void setGsServiceNo(String gsServiceNo) {
        this.gsServiceNo = gsServiceNo;
    }


    public Long getOrderId() {
        return orderId;
    }


    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }


    public String getOrderNum() {
        if (null == orderNum) {
            return "";
        }
        return orderNum;
    }


    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }


    public BigDecimal getMoney() {
        return money;
    }


    public void setMoney(BigDecimal money) {
        this.money = money;
    }


    public BigDecimal getRealMoney() {
        return realMoney;
    }


    public void setRealMoney(BigDecimal realMoney) {
        this.realMoney = realMoney;
    }


    public BigDecimal getAfterMoney() {
        return afterMoney;
    }


    public void setAfterMoney(BigDecimal afterMoney) {
        this.afterMoney = afterMoney;
    }


    public RecordType getRecordType() {
        return recordType;
    }


    public void setRecordType(RecordType recordType) {
        this.recordType = recordType;
    }


    public Integer getRcType() {
        return rcType;
    }


    public void setRcType(Integer rcType) {
        this.rcType = rcType;
    }


    public String getOperating() {
        return operating;
    }


    public void setOperating(String operating) {
        this.operating = operating;
    }


    public String getMemo() {
        if (null == memo) {
            return "";
        }
        return memo;
    }


    public void setMemo(String memo) {
        this.memo = memo;
    }


    public Date getCreated() {
        return created;
    }


    public void setCreated(Date created) {
        this.created = created;
    }


    public Date getUpdated() {
        return updated;
    }


    public void setUpdated(Date updated) {
        this.updated = updated;
    }


    public String getRecordTypeStr() {
        if (null != recordType) {
            if (recordType.equals(RecordType.RECHARGE_TYPE_ADMIN)) {
                return "人工充值";
            } else if (recordType.equals(RecordType.CONSUMED_TYPE_ADMIN)) {
                return "人工扣款";
            } else if (recordType.equals(RecordType.CONSUMED_TYPE_GAS)) {
                return "加油扣款";
            }
            return recordType.toString();
        } else {
            return "-";
        }
    }

    public enum RecordType {
        /**
         * 后台充值
         */
        RECHARGE_TYPE_ADMIN,
        /**
         * 后台扣费
         */
        CONSUMED_TYPE_ADMIN,
        /**
         * 加油收费
         */
        CONSUMED_TYPE_GAS,
    }

}
